local key = KEYS[1] -- Redis Key
local noteId = ARGV[1] -- 笔记ID
local timestamp = ARGV[2] -- 时间戳

-- 添加新的笔记收藏关系
redis.call('ZADD', key, timestamp, noteId)
return 0
